package com.hundsun.yr.universal.p2p.presenter.impl;

import android.content.Context;

import com.hundsun.yr.universal.p2p.interactor.base.SegmentInteractor;
import com.hundsun.yr.universal.p2p.presenter.base.Presenter;
import com.hundsun.yr.universal.p2p.view.base.BaseSegmentView;




/**
 * @Title: MineLoanPresenterImpl.java 
 * @Description: 我的借款
 * @date 2016-1-6 上午9:41:57 
 * @author:hejun.shen
 * @email:shenhj15971@hundsun.com 
 * @replace author:
 * @replace date:
 * @version V1.0   
 */
public class MineLoanPresenterImpl implements Presenter{
	
	@SuppressWarnings("unused")
	private Context mContext = null;
	private BaseSegmentView mBaseSegmentView = null;
	private SegmentInteractor mInteractor;
	
	public MineLoanPresenterImpl(Context context,BaseSegmentView segmentView,SegmentInteractor interactor) {
		// TODO Auto-generated constructor stub
		if (null == segmentView) {
			throw new IllegalArgumentException("Constructor's parameters must not be Null");
		}
		this.mContext=context;
		this.mBaseSegmentView=segmentView;
		this.mInteractor = interactor;
	}
	
	
	@Override
	public void initialized() {
		// TODO Auto-generated method stub
//		mDetailView.initializeViews(getSegmentFragments());
		mBaseSegmentView.initializeViews(mInteractor.getFragments(mContext));
	}
	
	
/*	private List<BaseFragment> getSegmentFragments() {
		// TODO Auto-generated method stub
		List<BaseFragment> fragments = new ArrayList<BaseFragment>();
		fragments.add(new ApplyInFragment());//全部
		fragments.add(new ApplyingFragment());//申请中
		fragments.add(new UnreturnLoanFragment());//待还款
		fragments.add(new ReturnLoanFragment());//已还款
		return fragments;
	}*/

}
